<?php defined('SYSPATH') OR die('No direct access allowed.');

class AnalysisError extends Exception {

	private $position;

	public function __construct($msg, $position){
		parent::__construct($msg);
        $this->position = $position;
	}

    public function getPosition(){
        return $this->position;
    }

    public function __toString(){
        return parent::__toString().", @ ".$this->position;
    }
    
} // End Token